package com.baitai.system.domain;

import com.baitai.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baitai.common.annotation.Excel;

import java.util.List;

/**
 * 订单明细对象 product_order_details
 * 
 * @author xx
 * @date 2024-07-21
 */
public class ProductOrderDetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long detailId;

    /** 订单id */
    @Excel(name = "订单id")
    private Long orderId;

    /** 商品id */
    @Excel(name = "商品id")
    private Long productId;

    /** 商品id */
    @Excel(name = "商品id")
    private String productName;

    @Excel(name = "商品图片")
    private String productUrl;

    /** 购买数量 */
    @Excel(name = "购买数量")
    private String quantity;

    /** 单价 */
    @Excel(name = "单价")
    private String pricePerUnit;

    /** 小计 */
    @Excel(name = "小计")
    private String subtotal;

    /** 商品详情信息 */
    private ProductInfo productInfo;

    public void setDetailId(Long detailId)
    {
        this.detailId = detailId;
    }

    public Long getDetailId()
    {
        return detailId;
    }
    public void setOrderId(Long orderId)
    {
        this.orderId = orderId;
    }

    public Long getOrderId()
    {
        return orderId;
    }
    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId()
    {
        return productId;
    }
    public void setQuantity(String quantity)
    {
        this.quantity = quantity;
    }

    public String getQuantity()
    {
        return quantity;
    }
    public void setPricePerUnit(String pricePerUnit)
    {
        this.pricePerUnit = pricePerUnit;
    }

    public String getPricePerUnit()
    {
        return pricePerUnit;
    }
    public void setSubtotal(String subtotal)
    {
        this.subtotal = subtotal;
    }

    public String getSubtotal()
    {
        return subtotal;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductUrl() {
        return productUrl;
    }

    public void setProductUrl(String productUrl) {
        this.productUrl = productUrl;
    }

    public ProductInfo getProductInfo() {
        return productInfo;
    }

    public void setProductInfo(ProductInfo productInfo) {
        this.productInfo = productInfo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("detailId", getDetailId())
                .append("orderId", getOrderId())
                .append("productId", getProductId())
                .append("quantity", getQuantity())
                .append("pricePerUnit", getPricePerUnit())
                .append("subtotal", getSubtotal())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("productInfo", getProductInfo())
                .toString();
    }
}
